import Vue from 'vue'
//对应你要跳转的组件
import HelloWorld from "../components/HelloWorld"
import Router from 'vue-router'
import Diagnosis from "@/pages/Intelligent_diagnosis/Diagnosis"
import DiagnosticResult from "@/pages/Intelligent_diagnosis/components/Result"
import Test from "@/pages/Intelligent_diagnosis/components/Test"
import MainPage from "@/pages/MainPage";
import Transition from "@/pages/Intelligent_diagnosis/components/Transition";
import DrugSearch from "@/pages/Drug_Search/components/DrugSearch"
import SearchResult from "@/pages/Drug_Search/components/SearchResult"
import KnowledgeGraph from "@/pages/Drug_Search/components/KnowledgeGraph";
Vue.use(Router);
export default new Router({
    routes: [
        {path:'/',name:'hello',component:HelloWorld},
        {path:'/diagnosis',name:'diagnosis',component:Diagnosis},
        {path:'/diagnosticresult',name:'diagnosticresult',component:DiagnosticResult},
        {path:'/test',name:'test',component:Test},
        {path:'/transition',name:'test',component:Transition},
        {path:'/mainpage',name:'mainpage',component:MainPage},
        {path:'/search',name:'Search',component:DrugSearch,hidden:true},
        {
            path:'/drugResult',
            name:'drugResult',
            component:SearchResult,
            hidden:true,
        }, {
            path:'/knowledgeGraph',
            name:'KnowledgeGraph',
            component:KnowledgeGraph,
            hidden:true,
        },
    ],
})
